package javabasic.threads.quqian;

public class Quqian02 implements Runnable{
    private Bankcount02 bankcount02;

    public Quqian02(Bankcount02 bankcount02) {
        this.bankcount02 = bankcount02;
    }

    @Override
    public void run() {
        for (int i = 0; i < 3; i++) {
            this.bankcount02.quxian();
            try {
                Thread.sleep(1000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
    }
}
